
class Car:
    def __init__(self,car_no,car_lnum,car_color,
                 car_weight,car_sheng):
        self.car_no = car_no
        self.car_lnum = car_lnum
        self.car_color = car_color
        self.car_weight = car_weight
        self.car_sheng = car_sheng
    def getinfo(self):
        print("车辆型号：",self.car_no)
        print("车轮数：",self.car_lnum)
        print("车辆颜色：",self.car_color)
        print("车辆重量：",self.car_weight)
        print("车辆邮箱大小：",self.car_sheng)
        print("----------------------------")
    def setinfo(self,car_no,car_lnum,car_color,
                 car_weight,car_sheng):
        self.car_no = car_no
        self.car_lnum = car_lnum
        self.car_color = car_color
        self.car_weight = car_weight
        self.car_sheng = car_sheng
class BMW(Car):
    def __init__(self,car_no,car_lnum,car_color,
                 car_weight,car_sheng):
        super().__init__(car_no,car_lnum,car_color,
                 car_weight,car_sheng)
    def getinfo(self):
        super().getinfo()
    def setinfo(self,car_no,car_lnum,car_color,
                 car_weight,car_sheng):
        super().setinfo(car_no,car_lnum,car_color,
                 car_weight,car_sheng)
class wuling(Car):
    def __init__(self,car_no,car_lnum,car_color,
                 car_weight,car_sheng):
        super().__init__(car_no,car_lnum,car_color,
                        car_weight,car_sheng)

    def getinfo(self):
        super().getinfo()
    def setinfo(self,car_no,car_lnum,car_color,
                 car_weight,car_sheng):
        super().setinfo(car_no,car_lnum,car_color,
                        car_weight,car_sheng)
wl = wuling("宏光","4","红色","1.5吨","500L")
bmw = BMW("宝马","4","黑色","2吨","1000L")
wl.getinfo()
bmw.getinfo()